package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.UkePerformanceData;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.Map;

public interface GetUkePerformanceContractor {
    interface Model{
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void getPerformance(Map<String,Object> request);
        interface CallBack extends BaseHttpListener{
            void onSuccess(BaseResponse<UkePerformanceData> response);
        }
    }

    interface View extends BaseView{
        void onGetDataSuccess(UkePerformanceData data);
    }

    interface Presenter{
        void getPerformanceData();
    }
}
